package com.example.scademo;

import java.io.File;

public class Test {

    public static void main(String[] args) {
        String s = "\\changelog.Debian";
        int lastIndex =  s.lastIndexOf(File.separator);
        String fiurl = s.substring(0,lastIndex);
        System.out.println(fiurl);
        File file = new File("D:\\BaiduNetdiskDownload\\test");
        System.out.println(file.exists());
    }}
